import {
  Http
} from '../utils/http.js'

class MyModule extends Http {
  getFavorCount(callBack) {
    this.request({
      url: 'book/favor/count',
      success: (res) => {
        callBack(res)
      }
    })
  }
  getFavor(callBack) {
    this.request({
      url: '/classic/favor',
      success: (res) => {
        callBack(res)
      }
    })
  }
}
export { MyModule }